package com.example.wechat;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import java.util.Calendar;

public class resvlit extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_resvlit);
        Intent intent=getIntent();
        intent.putExtra("data","聊天内容是xxx\n"+"时间是:"+ Calendar.getInstance().getTime());
        setResult(2,intent);
        finish();
    }
}